﻿<%@ WebHandler Language="C#" Class="CalTypePriceEdit" %>

using System;
using System.Web;
using BLL;
public class CalTypePriceEdit : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string id, fist, last;

        id = context.Request.Params["id"].ToString().Trim();
        fist = context.Request.Params["fisrt"].ToString().Trim();
        last = context.Request.Params["last"].ToString().Trim();

        if (id == "")
        {
            context.Response.Write("程序异常，请返回重新操作");
            return;
        }
        if (fist == "" && last == "")
        {
            context.Response.Write("请录入价格调整数据");
            return;
        }
        string value = new WayBillService().ToSetCalTypePrice(id, fist, last);
        context.Response.Write(value);


    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}